Skip to content

feat: add support for transfer entire balance for vesting accounts#7650

Merged
gjermundgaraba merged 7 commits intomainfrom
gjermund/spend-all-vesting-account
Dec 12, 2024
Merged

feat: add support for transfer entire balance for vesting accounts#7650
gjermundgaraba merged 7 commits intomainfrom
gjermund/spend-all-vesting-account

Conversation

@gjermundgaraba
Copy link
Copy Markdown
Contributor

@gjermundgaraba gjermundgaraba commented Dec 9, 2024

Description

This allows for the "transfer entire balance" feature to work for vesting accounts.

closes: #7658


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Copy link
Copy Markdown
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Would be nice to have a corresponding issue for bug, though.

GetBalance shouldn't be used elsewhere atm right? Can be removed from expected keeper interface. (Though it is used in the impl of OnSendPacket for transfer v2 on feat/ibc-eureka where it should also be tweaked)

@gjermundgaraba
Copy link
Copy Markdown
Contributor Author

Looks good to me. Would be nice to have a corresponding issue for bug, though.

Added!

GetBalance shouldn't be used elsewhere atm right? Can be removed from expected keeper interface. (Though it is used in the impl of OnSendPacket for transfer v2 on feat/ibc-eureka where it should also be tweaked)

Right! Removed it, and will merge this into feat/ibc-eureka and deal with that after this is merged.

@DimitrisJim DimitrisJim disabled auto-merge December 11, 2024 15:22
@DimitrisJim
Copy link
Copy Markdown
Contributor

I'd slam this in if you feel confidently about it tbh

@sonarqubecloud
Copy link
Copy Markdown

@gjermundgaraba
Copy link
Copy Markdown
Contributor Author

I'd slam this in if you feel confidently about it tbh

I would if I had access to do so :D

@gjermundgaraba gjermundgaraba merged commit b0d5778 into main Dec 12, 2024
@gjermundgaraba gjermundgaraba deleted the gjermund/spend-all-vesting-account branch December 12, 2024 12:14
@gjermundgaraba
Copy link
Copy Markdown
Contributor Author

Oh wait, I did. Nevermind.

mergify bot pushed a commit that referenced this pull request Dec 12, 2024
…7650)

* fix spendable bug

* remove GetBalance from expected keeper

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
(cherry picked from commit b0d5778)
gjermundgaraba added a commit that referenced this pull request Dec 12, 2024
…7650) (#7676)

* fix spendable bug

* remove GetBalance from expected keeper

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
(cherry picked from commit b0d5778)

Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for transfer entire balance for vesting accounts

2 participants